package com.rental.houses.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rental.model.entity.house.SubletHourse;
import com.rental.model.vo.house.SubletHouseInfoVo;
import com.rental.model.vo.house.SubletHousePageVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-01-16
 */
public interface SubletHourseMapper extends BaseMapper<SubletHourse> {

    Page<SubletHousePageVo> getSubletHousePage(Page<SubletHousePageVo> pageVo,@Param("keyword") String keyword,@Param("structure") String structure, @Param("rent") Integer rent);

    SubletHouseInfoVo getSubletHouseInfoById(Long id);

    SubletHousePageVo getSubletHousePageVo(@Param("id") Long id, @Param("state") Integer state);
}
